package com.haiyan.demo;

public class Teacher {
    private String name;
    private String id;
    public Teacher()
    {

    }
    public Teacher(String name,String id)
    {
        this.name=name;
        this.id=id;
    }
    public String getName()
    {
        return this.name;
    }
    public String getId()
    {
        return this.id;
    }
    public void setName(String name)
    {
        this.name=name;
    }
    public void setId(String id)
    {
        this.id=id;
    }

    public void teach()
    {
        System.out.println(this.name+","+this.id+","+"教课");
    }
}
